package com.hgh.AES;


import java.security.cert.X509Certificate;
import java.util.Arrays;
import java.util.Calendar;

public class SignatureVerification implements java.io.Serializable {
	
	private static final long serialVersionUID = 8888548409388050113L;

	private String SerialNumber;
	
	private String notBefore;
	private String notAfter;
	private String issue;
	
	private String signName;
	private String name;
	private String subject;
	private int revision;
	private boolean wholeDocument;
	private Calendar date;
	private boolean modified;
	private Object[] fails;
	private String reason;
	private String location;
	private X509Certificate x509;
	private String x509Base64;
	

	public SignatureVerification() {
	}
	
	

	public String getIssue() {
		return issue;
	}



	public void setIssue(String issue) {
		this.issue = issue;
	}



	public String getNotBefore() {
		return notBefore;
	}

	public void setNotBefore(String notBefore) {
		this.notBefore = notBefore;
	}

	public String getNotAfter() {
		return notAfter;
	}


	public void setNotAfter(String notAfter) {
		this.notAfter = notAfter;
	}

	public SignatureVerification(String aName) {
		this.name = aName;
	}

	public String getSerialNumber() {
		return SerialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		SerialNumber = serialNumber;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public int getRevision() {
		return this.revision;
	}

	public void setRevision(int revision) {
		this.revision = revision;
	}

	public boolean isWholeDocument() {
		return this.wholeDocument;
	}

	public void setWholeDocument(boolean wholeDocument) {
		this.wholeDocument = wholeDocument;
	}

	public Calendar getDate() {
		return this.date;
	}

	public void setDate(Calendar date) {
		this.date = date;
	}

	public boolean isModified() {
		return this.modified;
	}

	public void setModified(boolean modified) {
		this.modified = modified;
	}

	public Object[] getFails() {
		return this.fails;
	}

	public void setFails(Object[] fails) {
		this.fails = fails;
	}

	public String getLocation() {
		return this.location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String toString() {
		return "Signature verification [\n signName=" + this.signName
				+ "\n name=" + this.name + "\n subject=" + this.subject
				+ "\n date=" + this.date.getTime() + "\n reason=" + this.reason
				+ "\n location=" + this.location + "\n revision="
				+ this.revision + "\n wholeDocument=" + this.wholeDocument
				+ "\n modified=" + this.modified + "\n fails="
				+ (this.fails == null ? "no" : Arrays.asList(this.fails))
				+ "\n]";
	}

	public String getSignName() {
		return this.signName;
	}

	public void setSignName(String signName) {
		this.signName = signName;
	}



	public X509Certificate getX509() {
		return x509;
	}



	public void setX509(X509Certificate x509) {
		this.x509 = x509;
	}



	public String getX509Base64() {
		return x509Base64;
	}



	public void setX509Base64(String x509Base64) {
		this.x509Base64 = x509Base64;
	}
	
	
}